import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {ConfigListComponent} from './config-list/config-list.component';
import {ConfigDetailComponent} from './config-list/config-detail/config-detail.component';
import {AddConfigComponent} from './config-list/add-config/add-config.component';
import {ConfigEditComponent} from './config-list/config-edit/config-edit.component';


export const routes: Routes = [
  {
    path: 'config-list',
    component: ConfigListComponent,
    children: []
  },
  {
    path: 'config-detail/:id',
    component: ConfigDetailComponent,
    children: []
  },
  {
    path: 'add-config',
    component: AddConfigComponent,
    children: []
  },
  {
    path: 'config-edit/:id',
    component: ConfigEditComponent,
    children: []
  }
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
